package com.woniu.stream;

import com.woniu.entity.Account;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Database{
    private static List<Account> list;


    public static List<Account> getList(){
        return list;
    }

    static{
        list=new ArrayList<Account>();
        Account a1 = new Account(7,"a","aaa","male",2000,"成都","19534789968",new Date());
        Account a2 = new Account(4,"b","bbb","male",7000,"成都","19534789778",new Date());
        Account a3 = new Account(3,"c","ccc","male",1000,"上海","19534789788",new Date());
        Account a4 = new Account(5,"d","ddd","male",2800,"成都","19534789448",new Date());
        Account a5 = new Account(1,"e","eee","male",8000,"广东","19534789988",new Date());
        Account a6 = new Account(2,"f","fff","male",9000,"河南","19534789458",new Date());
        Account a7 = new Account(6,"g","ggg","male",4000,"成都","19534789218",new Date());
        list.add(a1);
        list.add(a2);
        list.add(a3);
        list.add(a4);
        list.add(a5);
        list.add(a6);
        list.add(a7);
    }
}
